/*
# File    :   datatype.h
* Descrb  :   Head file for data type
*/

#ifndef __DATATYPE_H__
#define __DATATYPE_H__

#ifndef __u8
typedef unsigned char         __u8;
#endif

#ifndef __s8
typedef signed char            __s8;
#endif

#ifndef __u16
typedef unsigned short         __u16;
#endif

#ifndef __s16
typedef signed short        __s16;
#endif

#ifndef __u32
typedef unsigned int        __u32;
#endif

#ifndef __s32
typedef signed int            __s32;
#endif

#ifndef __s64
typedef signed long long    __s64;
#endif

#ifndef __u64
typedef unsigned long long    __u64;
#endif

#ifndef byte
typedef unsigned char        byte;
#endif

#ifndef int8
typedef signed char                 int8;
#endif

#ifndef int16
typedef short                 int16;
#endif

#ifndef int32
typedef long                int32;
#endif

#ifndef uint8
typedef unsigned char        uint8;
#endif

#ifndef uint16
typedef unsigned short        uint16;
#endif

#ifndef uint32
typedef unsigned int        uint32;
#endif

#if 0
#ifndef u8
typedef unsigned char        u8;
#endif

#ifndef s8
typedef signed char            s8;
#endif

#ifndef u16
typedef unsigned short        u16;
#endif

#ifndef u16
typedef signed short        s16;
#endif

#ifndef u32
typedef unsigned int         u32;
#endif

#ifndef s32
typedef signed int            s32;
#endif

#ifndef u64
typedef unsigned long long    u64;
#endif

#ifndef s64
typedef signed long long    s64;
#endif
#endif

#ifndef uchar
typedef unsigned char         uchar;
#endif

#ifndef ushort
typedef unsigned short         ushort;
#endif

#ifndef uint
typedef unsigned int         uint;
#endif

#ifndef ulong
typedef unsigned long         ulong;
#endif

#ifndef ulonglong
typedef unsigned long long    ulonglong;
#endif
#if 0
#ifndef uint8_t
typedef unsigned char        uint8_t;
#endif

#ifndef uint16_t
typedef unsigned short        uint16_t;
#endif

#ifndef uint32_t
typedef unsigned int        uint32_t;
#endif
#endif
#ifndef INT8U
typedef unsigned char        INT8U;
#endif

#ifndef INT8
typedef signed char            INT8;
#endif

#ifndef INT8S
typedef signed     char        INT8S;
#endif

#ifndef INT16U
typedef unsigned short        INT16U;
#endif

#ifndef INT16
typedef short                INT16;
#endif

#ifndef INT16S
typedef signed short        INT16S;
#endif

#ifndef INT32U
typedef unsigned int        INT32U;
#endif

#ifndef INT32
typedef int                    INT32;
#endif

#ifndef INT32S
typedef signed int            INT32S;
#endif

#ifndef INT64U
typedef unsigned long long    INT64U;
#endif

#ifndef INT64
typedef long long            INT64;
#endif

#ifndef INT64S
typedef signed long long    INT64S;
#endif

#ifndef FLOAT32
typedef float                FLOAT32;
#endif

#ifndef FLOAT64
typedef double                FLOAT64;
#endif

#ifndef BOOL
//typedef unsigned int        BOOL;
#endif

#ifndef BOOLEAN
typedef signed int        BOOLEAN;
#endif

#ifndef U8
typedef unsigned char        U8;
#endif

#ifndef U16
typedef unsigned short        U16;
#endif

#ifndef U32
typedef unsigned int        U32;
#endif

#ifndef u8_t
typedef unsigned char      u8_t;
#endif

#ifndef s8_t
typedef signed   char      s8_t;
#endif

#ifndef u16_t
typedef unsigned short   u16_t;
#endif

#ifndef s16_t
typedef signed   short    s16_t;
#endif

#ifndef u32_t
typedef unsigned int   u32_t;
#endif

#ifndef s32_t
typedef signed   int   s32_t;
#endif
#ifndef TRUE
#define TRUE                 1
#endif
#ifndef FALSE
#define FALSE                 0
#endif
//#define OK                1
//#define FAIL                0
//#define ERROR                -1

#ifndef NULL
#define NULL                0
#endif

#define LPSTR    U8 *

typedef unsigned short         umode_t;
//typedef unsigned int         size_t;
typedef unsigned long        IPaddr_t;

#define BITS_PER_LONG 32
typedef U32 dma_addr_t;

#endif    /*__DATA_TYPE_H__*/

